﻿using System;
using System.Collections.Generic;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class TP_TRUNGGIAN_BUS
    {
        public static bool ThemThanhPhoTrungGian(TP_TRUNGGIAN_DTO tp)
        {
            return TP_TRUNGGIAN_DAO.ThemThanhPhoTrungGian(tp);
        }
        public static bool SuaThanhPhoTrungGian(int MaTuyen,int MaTP1,int MaTP2)
        {
            return TP_TRUNGGIAN_DAO.SuaThanhPhoTrungGian(MaTuyen,MaTP1,MaTP2);
        }
        public static bool XoaThanhPhoTrungGian(int maTuyen, int maTP)
        {
            return TP_TRUNGGIAN_DAO.XoaThanhPhoTrungGian(maTuyen, maTP);
        }
        public static List<TP_TRUNGGIAN_DTO> SelectThanhPhoTrungGiansAll()
        {
            return TP_TRUNGGIAN_DAO.SelectThanhPhoTrungGiansAll();
        }
        public static List<TP_TRUNGGIAN_DTO> SelectThanhPhoTrungGiansByAndMaTuyen(int maTuyen)
        {
            return TP_TRUNGGIAN_DAO.SelectThanhPhoTrungGiansByAndMaTuyen(maTuyen);
        }
    }
}
